Risk and protective factors for medically serious suicide attempts: a comparison of hospital-based with population-based samples of young adults